def outFun(name):
    def innerFun(msg):
        print(name + ":" + msg)

    return innerFun


tomSay = outFun("Tom")
tomSay("hahah")
tomSay = outFun("Tom2")
tomSay("ixixixixi")
